Hello,
bu12 - Wed Jan 14 08:52:46 EST 2015 |
Re: Create a folder That depends on which part of the DXL reference manual is unclear to you. ("The name argument can be an absolute or relative name, and may include the path") In addition to absolute name, see: setting current Project, setting current Folder |
Re: Create a folder I think it best to get these 3 pieces of information:
If you get a handle on the parent folder you can
You can put the two paths together to create a fullName of the desire folder: /MyProject/MyFolder/MyNewFolder" A common use for a "Relative" folder would be to create a specific folder in the current Project, whatever that is.
-Louie
|
Re: Create a folder Mike.Scharnow - Wed Jan 14 09:06:50 EST 2015 That depends on which part of the DXL reference manual is unclear to you. ("The name argument can be an absolute or relative name, and may include the path") In addition to absolute name, see: setting current Project, setting current Folder Thank you.
I want to copy a module from one folder to another. |
Re: Create a folder To answer such questions, always ask yourself: how would you do it without DXL? DXL is like a shortcut for all the clicks and keystrokes you would normally do "manually". In this case, the answer might be "I could use the clipboard, so I click on the folder, use Copy, I navigate to the destination Folder, use Paste." Then you go to the DXL manual and search for copy and paste. You will find the section "Hierarchy clipboard" which explains how the clipboard works and find the functions clipCopy and clipPase. If your answer is "it is not sufficient to the clipboard, because the destination folder needs a different folder name / module name / module content / access rights", you have to define your exact requirements, design your program and find the DXL functions you need... Hope this helps, Mike
|
Re: Create a folder Hi bu12, in it's barest form, this code is correct. There are some things to take into account, though:
Project pSource = project "/Templates"
current = pSource
string sResult = clipCopy (tg)
if (!null sResult) {...; return}
Hope this helps, |
Re: Create a folder Mike.Scharnow - Mon Jan 19 06:40:55 EST 2015 Hi bu12, in it's barest form, this code is correct. There are some things to take into account, though:
Project pSource = project "/Templates"
current = pSource
string sResult = clipCopy (tg)
if (!null sResult) {...; return}
Hope this helps, Oh, sorry - I just noticed that Louis already pointed out some things on my list and added more things to take care of. Read through his post again and incorporate his hints into your code.
BR, |
Re: Create a folder Mike.Scharnow - Mon Jan 19 06:46:51 EST 2015 Oh, sorry - I just noticed that Louis already pointed out some things on my list and added more things to take care of. Read through his post again and incorporate his hints into your code.
BR, Hello, I can copy now the modules from one folder to another. If I look at the modul features and then Linksets, I can´t see the Linkmodul and the Status.
|
Re: Create a folder bu12 - Thu Jan 22 02:38:14 EST 2015 Hello, I can copy now the modules from one folder to another. If I look at the modul features and then Linksets, I can´t see the Linkmodul and the Status.
Hi! This might be an access problem. Link restrictions (in DXL Link Module Descriptors) and the status is stored in the folder where the source module is stored and you need to have "A" rights on this folder Do you have "A"dmin access rights on the destination folder? In other words: what happens if you copy/paste the folder manually, without DXL. Is the link restriction information copied?
Edit: ... is stored ... where the source (formal, not link) module is stored... |
Re: Create a folder Mike.Scharnow - Thu Jan 22 05:24:54 EST 2015 Hi! This might be an access problem. Link restrictions (in DXL Link Module Descriptors) and the status is stored in the folder where the source module is stored and you need to have "A" rights on this folder Do you have "A"dmin access rights on the destination folder? In other words: what happens if you copy/paste the folder manually, without DXL. Is the link restriction information copied?
Edit: ... is stored ... where the source (formal, not link) module is stored... Hi,
if I copy/paste the folder manually it works, the link restriction information was copied. |
Re: Create a folder bu12 - Mon Jan 26 02:52:27 EST 2015 Hi,
if I copy/paste the folder manually it works, the link restriction information was copied. Hi, in the other thread you stated that you use DOORS 9.6, so the bug that was mentioned by BillTidy should not be the root case. I use 9.6.0.0 (64 bit) and cannot reproduce the problem. Let me summarize the problem how I understand it and the prerequisites:
If all this is true, I'm sorry, I do not have another idea. Perhaps some of the others here have, or the IBM help desk.
BR, |